From bed3635d310d243a7946566e4eea0ed5e4833a49 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 20 Dec 2023 17:11:37 +0000 Subject: Move ShidToPatio code to separate package --- ...mpiler.testing.snapshots.Snapshotter)].expected | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..f9263c9e --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,44 @@ +Compilation unit elements: + + +Locals: + * (val "tupleElement__2__0" int) + * (val "tupleElement__1__0" int) + * (val "tupleElement__0__0" int) + * (val "tuple__0" int) + * (val "tuplePointer__0" data-ptr) + +Instructions: + +( + (local-store (local "tupleElement__2__0") (local "d")) + (local-store (local "tupleElement__1__0") (local "c")) + (local-store (local "tupleElement__0__0") (local "b")) + (alloc-heap (local "tuplePointer__0") (struct ((struct (data-ptr int int int)) (struct (int int int))))) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int int)) (struct (int int int)))) + offset=(1 0) + value=(local "tupleElement__0__0") + ) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int int)) (struct (int int int)))) + offset=(1 1) + value=(local "tupleElement__1__0") + ) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int int)) (struct (int int int)))) + offset=(1 2) + value=(local "tupleElement__2__0") + ) + (data-ptr-to-int (local "tuple__0") (local "tuplePointer__0")) +) + +Temporary stack: + * PatioLocalRef[name=tuple__0] + * PatioLocalRef[name=a] -- cgit v1.2.3